BEGIN{
	old_id=0;
	low=hight=0;
}
{
	id=$1;
	if( id != old_id ) {
		if(NR!=1) {
			printf("%d\t%d\t%d\t\n", old_id, low ,hight);
		}
		old_id=id;
		low=$2;
		hight=$2;
	}
	else{
		if($2 < low ) {
			low = $2;
		}
		if($2 > hight ) {
			hight = $2;
		}
	}
}
END{
	printf("%d\t%d\t%d\t\n", old_id, low ,hight);
}
